document.getElementById('done').addEventListener('tap', function () {
    var realname=document.getElementById('realname').value;
    var mobile=document.getElementById('mobile').value;
    var address=document.getElementById('address').value;

    mui.ajax('/mine/update',{
        data:{
            realname:realname,
            mobile:mobile,
            address:address
        },
        dataType:'json',//服务器返回json格式数据
        type:'post',//HTTP请求类型
        success:function(data){
            if(data.code==1){
                mui.alert('保存成功', '提示', function () {
                    location.href="/mine/editAccountInfo";
                });
            }
        },
        error:function(xhr,type,errorThrown){
            //异常处理；
            console.log(type);
        }
    });
})
function  sure() {
    var realname=document.getElementById('realname').value;
    var mobile=document.getElementById('mobile').value;
    var address=document.getElementById('address').value;

    mui.ajax('/mine/update',{
        data:{
            realname:realname,
            mobile:mobile,
            address:address
        },
        dataType:'json',//服务器返回json格式数据
        type:'post',//HTTP请求类型
        success:function(data){
            if(data.code==1){
                mui.alert('保存成功', '提示', function () {
                    location.href="/mine/editAccountInfo";
                });
            }
        },
        error:function(xhr,type,errorThrown){
            //异常处理；
            console.log(type);
        }
    });
}